package org.study.hadoop.md.entity;

/**
 * 评论
 */
public class Comment {
	private String id;				// 评论Id
	private String postId;			// 帖子Id
	private String userId;			// 用户Id
	private String text;			// 评论文本
	private String creationDate;	// 创建时间
	
	public Comment(String id, String postId, String  userId, String text, String creationDate) {
		this.id = id;
		this.postId = postId;
		this.userId = userId;
		this.text = text;
		this.creationDate = creationDate;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getPostId() {
		return postId;
	}
	public void setPostId(String postId) {
		this.postId = postId;
	}
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}
	public String getCreationDate() {
		return creationDate;
	}
	public void setCreationDate(String creationDate) {
		this.creationDate = creationDate;
	}
	
	@Override
	public String toString() {
		return "<row\tId=" + id + "\tPostId=" + postId + "\tUserId="
				+ userId + "\tText=" + text + "\tCreationDate=" + creationDate
				+ " />";
	}
}
